$(function(){
	var background = window.localStorage.getItem("BACKGROUND");
	setbackground(background);
	window.localStorage['APP_WEBROOT_CONTEXT_PATH']= "/drinkingBar";
    window.localStorage['APP_AJAX_PATH']= "http://192.168.4.214:8080/drinkingBar";
    
});


function setbackground(background){
	switch(background){
	case "1":
		$(".bodyframe").css("background-image","url(../image/fish.jpg)");
		window.localStorage.setItem("BACKGROUND","1");
		break;
	case "2":
		$(".bodyframe").css("background-image","url(../image/green.jpg)");
		window.localStorage.setItem("BACKGROUND","2");
		break;
	case "3":
		$(".bodyframe").css("background-image","url(../image/blue.jpg)");
		window.localStorage.setItem("BACKGROUND","3");
		break;
	default:
		$(".bodyframe").css("background-image","url(../image/heart.jpg)");
		window.localStorage.setItem("BACKGROUND","1");
		break;
	}
	
}